<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8" />
    <title><?php echo $title; ?> - 管理中心</title>
    <meta name="keywords" content="<?= $conf['keywords'] ?>">
    <meta name="description" content="<?= $conf['description'] ?>">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta content="A fully featured admin theme which can be used to build CRM, CMS, etc." name="description" />
    <meta content="Coderthemes" name="author" />
    <!-- App favicon -->
    <link rel="shortcut icon" href="../assets/favicon.ico" type="image/x-icon" />
    <!-- third party css -->
    <link href="../assets/css/vendor/jquery-jvectormap-1.2.2.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" type="text/css" href="../assets/layuiadmin/layui/css/layui.css" />
    <!-- third party css end -->
    <!-- App css -->
    <link href="../assets/css/icons.min.css" rel="stylesheet" type="text/css" />
    <link href="../assets/css/app.min.css" rel="stylesheet" type="text/css" />
    <script src="//lib.baomitu.com/jquery/1.12.4/jquery.min.js"></script>
    <script src="//lib.baomitu.com/layer/2.3/layer.js"></script>
</head>
<style>
    .card-title {
        font-weight: 300;
    }

    ;
</style>

<body>
    <script>
        function toggleFullScreen() {
            if (!document.fullscreenElement && !document.mozFullScreenElement && !document.webkitFullscreenElement) {
                if (document.documentElement.requestFullscreen) {
                    document.documentElement.requestFullscreen();
                } else if (document.documentElement.mozRequestFullScreen) {
                    document.documentElement.mozRequestFullScreen();
                } else if (document.documentElement.webkitRequestFullscreen) {
                    document.documentElement.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT);
                }
            } else {
                if (document.cancelFullScreen) {
                    document.cancelFullScreen();
                } else if (document.mozCancelFullScreen) {
                    document.mozCancelFullScreen();
                } else if (document.webkitCancelFullScreen) {
                    document.webkitCancelFullScreen();
                }
            }
        };
    </script>
    <?php
    if ($islogin2 == 1) {
        if ($userrow['active'] == 1) {
            exit("<script language='javascript'>alert('你的账号已被封禁！');window.location.href='../';</script>");
        }
        if ($userrow['power'] != 1) {
            if ($userrow['power'] > 0 && $userrow['endtime'] < $date) {
                exit("<script language='javascript'>alert('你的账号已到期，请联系管理员续费！');window.location.href='../';</script>");
            }
        }
    }
    ?>
    <!-- Begin page -->
    <div class="wrapper">
        <div class="left-side-menu" style="z-index: 10">
            <div class="slimscroll-menu" id="left-side-menu-container">
                <!-- LOGO -->
                <!--- Sidemenu -->
                <ul class="metismenu side-nav">
                    <li class="side-nav-title side-nav-item" style="font-size: 2em;color: white;font-weight: 300">用户管理后台
                    </li>
                    <li class="side-nav-item">
                        <a href="index.php" class="side-nav-link">
                            <i class="layui-icon layui-icon-home"></i>
                            <span> 用户首页 </span>
                        </a>
                    </li>
                    <li class="side-nav-item">
                        <a href="recharge.php" class="side-nav-link">
                            <i class="layui-icon layui-icon-rmb"></i>
                            <span> 在线充值 </span>
                        </a>
                    </li>
                    <?php if ($userrow['power'] == 1) { ?>
                        <li class="side-nav-item">
                            <a href="upsite.php" class="side-nav-link">
                                <i class="layui-icon layui-icon-upload"></i>
                                <span> 升级权限 </span>
                            </a>
                        </li>
                    <?php } ?>
                    <li class="side-nav-item">
                        <a href="javascript: void(0);" class="side-nav-link">
                            <i class="layui-icon layui-icon-auz"></i>
                            <span> 会员管理 </span>
                            <span class="menu-arrow"></span>
                        </a>
                        <ul class="side-nav-second-level" aria-expanded="false">
                            <?php if ($userrow['power'] == 1) { ?>
                                <li><a href="./uset.php?mod=viphy">购买会员</a></li>
                                <li><a href="./uset.php?mod=hylb">会员列表</a></li>
                                <li><a href="uset.php?mod=ghurl">更换会员</a></li>
                                <li><a href="uset.php?mod=xfhy">续费会员</a></li>
                            <?php }
                            if ($userrow['power'] == 2) { ?>
                                <li><a href="./viphy.php?my=add">添加会员授权</a></li>
                                <li><a href="./viphy.php">会员授权列表</a></li>
                            <?php } ?>
                        </ul>
                    </li>
                    <li class="side-nav-item">
                        <a href="javascript: void(0);" class="side-nav-link">
                            <i class="layui-icon layui-icon-survey"></i>
                            <span> 工单管理 </span>
                            <span class="menu-arrow"></span>
                        </a>
                        <ul class="side-nav-second-level" aria-expanded="false">
                            <li><a href="./workorder.php">工单列表</a></li>
                            <li><a href="./workorder.php?my=add">提交工单</a></li>
                        </ul>
                    </li>
                    <li class="side-nav-item">
                        <a href="javascript: void(0);" class="side-nav-link">
                            <i class="layui-icon layui-icon-website"></i>
                            <span> 服务项目 </span>
                            <span class="menu-arrow"></span>
                        </a>
                        <ul class="side-nav-second-level" aria-expanded="false">
                            <li><a href="./generate.php?mod=scurl">生成防洪</a></li>
                            <li><a href="./generate.php">生成记录</a></li>
                        </ul>
                    </li>
                    <li class="side-nav-item">
                        <a href="javascript: void(0);" class="side-nav-link">
                            <i class="layui-icon layui-icon-set"></i>
                            <span> 其它配置 </span>
                            <span class="menu-arrow"></span>
                        </a>
                        <ul class="side-nav-second-level" aria-expanded="false">
                            <?php
                            $conf['qqfl_open'] = $conf['qqfl_open'] ?? 0;
                            $conf['wxfl_open'] = $conf['wxfl_open'] ?? 0;
                            if ($conf['qqfl_open'] == 2 || $conf['qqfl_open'] == 1 || $conf['wxfl_open'] == 1) { ?>
                                <li><a href="./uset.php?mod=account">绑定快捷登录</a></li>
                            <?php } ?>
                            <li><a href="./uset.php?mod=account">接口KEY配置</a></li>
                            <li><a href="../?mod=apiwd">API接口文档</a></li>
                        </ul>
                    </li>
                </ul>
            </div>
            <!-- Sidebar -left -->
        </div>
        <!-- Left Sidebar End -->
        <div class="content-page">
            <div class="content">
                <!-- Topbar Start -->
                <div class="navbar-custom">
                    <ul class="list-unstyled topbar-right-menu float-right mb-0">
                        <li class="dropdown notification-list">
                            <a href="javascript:toggleFullScreen();" class="nav-link">
                                <i class="layui-icon layui-icon-screen-full noti-icon"></i>
                            </a>
                        </li>
                        <li class="dropdown notification-list">
                            <a class="nav-link dropdown-toggle nav-user arrow-none mr-0" data-toggle="dropdown" href="#" role="button" aria-haspopup="false" aria-expanded="false">
                                <span class="account-user-avatar">
                                    <img src="//q4.qlogo.cn/headimg_dl?dst_uin=<?= $userrow['qq'] ?>&spec=640" alt="user-image" class="rounded-circle bg-warning" style="border: solid 2px #ccc">
                                </span>
                                <span>
                                    <span class="account-user-name">用户名：<?= $userrow['user'] ?></span>
                                    <span class="account-position">权限：<?php echo ($userrow['power'] == 2 ? '贵族用户' : '普通用户') ?></span>
                                </span>
                            </a>
                            <div class="dropdown-menu dropdown-menu-right dropdown-menu-animated topbar-dropdown-menu profile-dropdown">
                                <!-- item-->
                                <div class=" dropdown-header noti-title">
                                    <h6 class="text-overflow m-0">快捷导航</h6>
                                </div>
                                <!-- item-->
                                <a href="../" target="_blank" class="dropdown-item notify-item">
                                    <i class="layui-icon layui-icon-home mr-1"></i>
                                    <span>前往首页</span>
                                </a>
                                <a href="uset.php?mod=account" class="dropdown-item notify-item">
                                    <i class="layui-icon layui-icon-user mr-1"></i>
                                    <span>个人中心</span>
                                </a>
                                <a href="javascript:logout()" class="dropdown-item notify-item">
                                    <i class="layui-icon layui-icon-next mr-1"></i>
                                    <span>注销账号</span>
                                </a>
                            </div>
                        </li>
                    </ul>
                    <button class="button-menu-mobile open-left disable-btn">
                        <i class="layui-icon layui-icon-spread-left"></i>
                    </button>
                    <div class="app-search">
                        <form>
                            <div class="input-group">
                                <input type="text" class="form-control" id="dw" placeholder="请输入需要搜索的内容">
                                <span class="layui-icon layui-icon-search"></span>
                                <div class="input-group-append">
                                    <button class="btn btn-primary" type="button" onclick="window.open('https://www.baidu.com/s?ie=UTF-8&wd='+$('#dw').val())">百度一下</button>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
                <!-- end Topbar -->
                <!-- start page title -->
                <div class="row" style="width: 98%;margin: auto">
                    <div class="col-12">
                        <!-- start page title -->
                        <div class="row">
                            <div class="col-12">
                                <div class="page-title-box">
                                    <div class="page-title-right">
                                        <ol class="breadcrumb m-0">
                                            <li class="breadcrumb-item"><a href="index.php">首页</a></li>
                                            <li class="breadcrumb-item active"><?php echo $title ?></li>
                                        </ol>
                                    </div>
                                    <br>
                                </div>
                            </div>
                        </div>
                        <!-- end page title -->
                    </div>
                </div>
                <!-- end page title -->
                <style>
                    .note-popover {
                        display: none
                    }

                    .note-toolbar {
                        z-index: 9 !important;
                    }

                    .panel-heading {
                        border-bottom: 1px solid #ccc;
                    }
                </style>